<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./js/jquery-3.5.1-mini.js"></script>
</head>
<body>
    表名：<input type="text">
    值：<textarea></textarea><br/>
    <button>增加</button>

    <script>
        $('button').click(function () {
            $.ajax({
                type: 'post',
                contentType: 'application/json',
                url: '/save',
                data: {
                    tableName: $('input').val(),
                    value: $('textarea').text()
                },
                success: function (response) {
                    alert(response)
                }
            });
        });
    </script>
</body>
</html>